package com.baichang.taoshunda.entity;

import com.baichang.framework.annotation.jdbc.Table;
import com.baichang.framework.annotation.jdbc.Id;
import com.baichang.framework.entity.BaseEntity;

import java.util.Date;
import java.math.BigDecimal;


@Table(name = "t_balance_details")
public class BalanceDetails extends BaseEntity {

    /**
     * 余额id
     **/
    private Integer id;
    /**
     * 商家编号
     **/
    private Integer userId;
    /**
     * 余额
     **/
    private BigDecimal balance;
    /**
     * 创建时间
     **/
    private Date created;
    /**
     * 订单号
     **/
    private String orderNumber;
    /**
     * 余额状态
     **/
    private String balanceState;
    /**
     * 收支来源
     **/
    private Integer sourceType;
    /**
     * 当前总金额
     */

    private BigDecimal currentAmount;

    /**
     * 余额id
     **/
    @Id
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 商家编号
     **/
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 余额
     **/
    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    /**
     * 创建时间
     **/
    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    /**
     * 订单号
     **/
    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    /**
     * 余额状态
     **/
    public String getBalanceState() {
        return balanceState;
    }

    public void setBalanceState(String balanceState) {
        this.balanceState = balanceState;
    }

    /**
     * 收支来源
     **/
    public Integer getSourceType() {
        return sourceType;
    }

    public void setSourceType(Integer sourceType) {
        this.sourceType = sourceType;
    }

    public BigDecimal getCurrentAmount() {
        return currentAmount;
    }

    public void setCurrentAmount(BigDecimal currentAmount) {
        this.currentAmount = currentAmount;
    }
}